/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package model.creature.monster.plugin;

import java.awt.Image;
import model.creature.monster.DefaultFullyFunctionalMonster;
import model.game.GameInterface;
import model.map.cell.Cell;
import model.utility.ImageUtility;

/**
 *
 * @author Reinhard
 */
public class Goat extends DefaultFullyFunctionalMonster {

    public Goat(GameInterface game, Cell cell){
        super(game,cell);
    }

    @Override
    protected int howImportantIsFacingThis(model.map.cell.Cell cell) {
      if (game_.getCreatures().getPlants().containsPlantAt(cell)) {
        return 1000000000 - game_.getCreatures().getPlants().getPlantAt(cell).getHP();
      }
      if (game_.getCreatures().getCrystals().containsCrystalAt(cell)) {
        return 1;
      }
      return 0;
    }

    @Override
    public int getSpeed() {
        return 2;
    }

    @Override
    public int getMaxHP() {
        return 100;
    }

    @Override
    public String getName() {
        return "Goat";
    }
    @Override
    public String getDescription() {
      return "Aims for plants, weakest of them.";
    }


    @Override
    public Image getImage() {
        return ImageUtility.loadImage("resources/pictures/monster/goat/goat.png");
    }

    @Override
    public int getPower() {
        return 25;
    }

}